package com.iworkh.spring.aop;

import com.iworkh.spring.aop.biz.service.BookService;
import com.iworkh.spring.aop.biz.service.IService;
import com.iworkh.spring.aop.jdkproxy.LoggerProxy;

/**
 * 入口类
 *
 * @author: iworkh-沐雨云楼
 * @date: 2019-12-19
 */
public class App {

    public static void main(String[] args) {
        IService bookService = new BookService();
        // bookService.delete("1");

        LoggerProxy<IService> loggerProxy = new LoggerProxy<>(bookService);
        IService bookServiceProxy = loggerProxy.getProxy();
        bookServiceProxy.delete("1");
    }
}
